//
//  OvenThreeTableViewCell.m
//  Fragrance
//
//  Created by mark on 15/6/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "OvenThreeTableViewCell.h"

@implementation OvenThreeTableViewCell

- (void)dealloc
{
    [_thumbLabel release];
    [_yingyangLabel release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createOvenView];
    }
    return self;
}

- (void)createOvenView
{
    self.titleLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.titleLabel];
    
    self.thumbLabel = [[[UIImageView alloc] init] autorelease];
    [self.contentView addSubview:self.thumbLabel];
    
    self.yingyangLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.yingyangLabel];
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
    
    self.titleLabel.frame = CGRectMake(100, 10, 200, 20);
    self.titleLabel.backgroundColor = [UIColor clearColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15.0];
    self.yingyangLabel.frame = CGRectMake(100, 40, self.contentView.frame.size.width - 100, 20);
    self.yingyangLabel.backgroundColor = [UIColor clearColor];
    self.yingyangLabel.numberOfLines = 4;
    self.yingyangLabel.font = [UIFont systemFontOfSize:15.0];
    [self.yingyangLabel sizeToFit];
    self.thumbLabel.frame = CGRectMake(5, 10, 90, 100);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
